﻿@model AplicacionTickets.Models.Espectaculo

@{
    ViewBag.Title = "Edit";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Espectaculo</legend>

        @Html.HiddenFor(model => model.EspectaculoId)

        <div class="editor-label">
            @Html.LabelFor(model => model.ArtistaId, "Artista")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ArtistaId", String.Empty)
            @Html.ValidationMessageFor(model => model.ArtistaId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LugarId, "Lugar")
        </div>
        <div class="editor-field">
            @Html.DropDownList("LugarId", String.Empty)
            @Html.ValidationMessageFor(model => model.LugarId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Titulo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Titulo)
            @Html.ValidationMessageFor(model => model.Titulo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaHora)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaHora)
            @Html.ValidationMessageFor(model => model.FechaHora)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaLimite)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaLimite)
            @Html.ValidationMessageFor(model => model.FechaLimite)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Estado)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Estado)
            @Html.ValidationMessageFor(model => model.Estado)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrecioEGen)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrecioEGen)
            @Html.ValidationMessageFor(model => model.PrecioEGen)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PrecioENum)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PrecioENum)
            @Html.ValidationMessageFor(model => model.PrecioENum)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CantGen)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CantGen)
            @Html.ValidationMessageFor(model => model.CantGen)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EspectaculoImageUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EspectaculoImageUrl)
            @Html.ValidationMessageFor(model => model.EspectaculoImageUrl)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
